<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

	<head>
		<meta charset="UTF-8">
		<title></title>

		<link rel="stylesheet" th:href="@{/res/css/amazeui.min.css}">
		<link rel="stylesheet" th:href="@{/res/css/admin.css}">
		<link rel="stylesheet" th:href="@{/layui/css/layui.css}" tppabs="http://res.layui.com/layui/dist/css/layui.css"
			  media="all">
		<script th:src="@{/layui/layui.js}"></script>
	</head>

	<body>

		<div class="admin-content-body">
			<div class="am-cf am-padding am-padding-bottom-0">
				<div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">角色管理</strong><small></small></div>
			</div>

			<div class="am-g" style="margin-top: 5px;">
				<div class="am-u-sm-12">

					<table class="layui-table">
						<thead>
								<tr>
									<th >序号</th>
									<th>角色名称
									</th><th>角色描述</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody id="tUser">
								<tr>
									<td>1</td>
									<td>
										品牌商
									</td>
									<td>拥有品牌商权限</td>
									<td>

										<button type="button" class="layui-btn" onclick="distribute(1);">
										<span class="am-icon-copy"></span> 分配权限</button>

									</td>
								</tr>
								<tr>
									<td>2</td>
									<td>借卖方</td>
									<td>拥有借卖方权限</td>
									<td>
										<button type="button" class="layui-btn"  onclick="distribute(2);" >
										<span class="am-icon-copy"></span> 分配权限</button>
									</td>
								</tr>
								<tr>
									<td>3</td>
									<td>管理员</td>
									<td>拥有管理员权限</td>
									<td>
										<button type="button" class="layui-btn"  onclick="distribute(3);" >
										<span class="am-icon-copy"></span> 分配权限</button>
									</td>
								</tr>

							</tbody>
						</table>
				</div>
			</div>
		</div>

		</div>
		<!-- content end -->
		</div>
		</div>


		<script th:src="@{/js/jquery-1.11.3.min.js}"></script>
		<script th:src="@{/myplugs/js/plugs.js}"></script>
		<script>

			function distribute(id) {
                $.jq_Panel({
                    title: "权限管理",
                    iframeWidth: 500,
                    iframeHeight: 360,
                    url: "/menu_distribute?type=" + id
                });
			}
		</script>
	</body>

</html>